package com.express.e.root.utils;

import java.util.Objects;

public class DeliveryWrap {
    private Integer deliveryId;
    private String deliveryCode;
    private String deliveryCompany;
    private String deliveryAcceptor;
    private String acceptorPhone;
    private String deliveryNum;
    private String deliveryState;
    private String insertCourier;

    public DeliveryWrap(Integer deliveryId, String deliveryCode, String deliveryCompany, String deliveryAcceptor, String acceptorPhone, String deliveryNum, String deliveryState, String insertCourier, String stateChangeTime, String insertCourier1) {
        this.deliveryId = deliveryId;
        this.deliveryCode = deliveryCode;
        this.deliveryCompany = deliveryCompany;
        this.deliveryAcceptor = deliveryAcceptor;
        this.acceptorPhone = acceptorPhone;
        this.deliveryNum = deliveryNum;
        this.deliveryState = deliveryState;
        this.insertCourier = insertCourier;
        this.stateChangeTime = stateChangeTime;
        this.insertCourier = insertCourier1;
    }

    public DeliveryWrap(Integer deliveryId, String deliveryCode, String deliveryCompany, String deliveryAcceptor, String acceptorPhone, String deliveryNum, String deliveryState, String stateChangeTime, String insertCourier) {
        this.deliveryId = deliveryId;
        this.deliveryCode = deliveryCode;
        this.deliveryCompany = deliveryCompany;
        this.deliveryAcceptor = deliveryAcceptor;
        this.acceptorPhone = acceptorPhone;
        this.deliveryNum = deliveryNum;
        this.deliveryState = deliveryState;
        this.stateChangeTime = stateChangeTime;
        this.insertCourier = insertCourier;
    }

    private String stateChangeTime;

    public String getInsertCourier() {
        return insertCourier;
    }

    public void setInsertCourier(String insertCourier) {
        this.insertCourier = insertCourier;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DeliveryWrap)) return false;
        DeliveryWrap that = (DeliveryWrap) o;
        return Objects.equals(getDeliveryId(), that.getDeliveryId()) &&
                Objects.equals(getDeliveryCode(), that.getDeliveryCode()) &&
                Objects.equals(getDeliveryCompany(), that.getDeliveryCompany()) &&
                Objects.equals(getDeliveryAcceptor(), that.getDeliveryAcceptor()) &&
                Objects.equals(getAcceptorPhone(), that.getAcceptorPhone()) &&
                Objects.equals(getDeliveryNum(), that.getDeliveryNum()) &&
                Objects.equals(getDeliveryState(), that.getDeliveryState()) &&
                Objects.equals(getStateChangeTime(), that.getStateChangeTime());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getDeliveryId(), getDeliveryCode(), getDeliveryCompany(), getDeliveryAcceptor(), getAcceptorPhone(), getDeliveryNum(), getDeliveryState(), getStateChangeTime());
    }

    @Override
    public String toString() {
        return "DeliveryWrap{" +
                "deliveryId=" + deliveryId +
                ", deliveryCode='" + deliveryCode + '\'' +
                ", deliveryCompany='" + deliveryCompany + '\'' +
                ", deliveryAcceptor='" + deliveryAcceptor + '\'' +
                ", acceptorPhone='" + acceptorPhone + '\'' +
                ", deliveryNum=" + deliveryNum +
                ", deliveryState='" + deliveryState + '\'' +
                ", stateChangeTime='" + stateChangeTime + '\'' +
                '}';
    }

    public Integer getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(Integer deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryCode() {
        return deliveryCode;
    }

    public void setDeliveryCode(String deliveryCode) {
        this.deliveryCode = deliveryCode;
    }

    public String getDeliveryCompany() {
        return deliveryCompany;
    }

    public void setDeliveryCompany(String deliveryCompany) {
        this.deliveryCompany = deliveryCompany;
    }

    public String getDeliveryAcceptor() {
        return deliveryAcceptor;
    }

    public void setDeliveryAcceptor(String deliveryAcceptor) {
        this.deliveryAcceptor = deliveryAcceptor;
    }

    public String getAcceptorPhone() {
        return acceptorPhone;
    }

    public void setAcceptorPhone(String acceptorPhone) {
        this.acceptorPhone = acceptorPhone;
    }

    public String getDeliveryNum() {
        return deliveryNum;
    }

    public void setDeliveryNum(String deliveryNum) {
        this.deliveryNum = deliveryNum;
    }

    public String getDeliveryState() {
        return deliveryState;
    }

    public void setDeliveryState(String deliveryState) {
        this.deliveryState = deliveryState;
    }

    public String getStateChangeTime() {
        return stateChangeTime;
    }

    public void setStateChangeTime(String stateChangeTime) {
        this.stateChangeTime = stateChangeTime;
    }

    public DeliveryWrap() {
    }

    public DeliveryWrap(Integer deliveryId, String deliveryCode, String deliveryCompany, String deliveryAcceptor, String acceptorPhone, String deliveryNum, String deliveryState, String stateChangeTime) {
        this.deliveryId = deliveryId;
        this.deliveryCode = deliveryCode;
        this.deliveryCompany = deliveryCompany;
        this.deliveryAcceptor = deliveryAcceptor;
        this.acceptorPhone = acceptorPhone;
        this.deliveryNum = deliveryNum;
        this.deliveryState = deliveryState;
        this.stateChangeTime = stateChangeTime;
    }
}
